package com.sims.action.student;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;

import com.sims.service.StudentService;
import com.sims.util.ActionEnhanced;
import com.sims.util.Constant;
/**
 * 
 * @author �ѳ�
 * ѧ��ǳ�
 */
@SuppressWarnings("serial")
public class StudentLogoffAction extends ActionEnhanced{

	@Autowired
	private StudentService studentService;
	
	@Override
	public String execute() {
		
		result = studentService.studentLogoff();
		if (result.containsKey(Constant.SUCCESS)) {
			System.out.println("success");
			return SUCCESS;
		}
		//System.out.println("error");
		return ERROR;
	}
}
